from django.db import models


# Create your models here.
class bk_classroom(models.Model):
    classid = models.CharField(max_length=20)
    class_filed = models.CharField(max_length=50)
    depid = models.CharField(max_length=20)
    depname = models.CharField(max_length=50)
    total = models.IntegerField(default=None, null=True)


class dep_count(models.Model):
    depid = models.CharField(max_length=20)
    usertype = models.CharField(max_length=20)
    total = models.IntegerField(default=None, null=True)


class bucket(models.Model):
    depid = models.CharField(max_length=20)
    usertype = models.CharField(max_length=20)
    is_faver = models.TextField(null=True, blank=True, default='[]')
    submited = models.TextField(null=True, blank=True, default='[]')
    is_passed = models.TextField(null=True, blank=True, default='[]')
    is_deacted = models.TextField(null=True, blank=True, default='[]')
    is_unsearch = models.TextField(null=True, blank=True, default='[]')
    isinschool = models.TextField(null=True, blank=True, default='[]')
    is_go_to_outer = models.TextField(null=True, blank=True, default='[]')
    isplanedtravel = models.TextField(null=True, blank=True, default='[]')
    is_atach_patient = models.TextField(null=True, blank=True, default='[]')
    folk_attach = models.TextField(null=True, blank=True, default='[]')
    createdate = models.DateTimeField(auto_now=True)
